home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 038a / qbatb503.zip / MIXED.DOC < prev    next >
Text File  |  1991-07-06  |  25KB  |  615 lines

  1.  
  2.             MIXED-LANGUAGE TOOLBOX FOR QuickBASIC
  3.             ─────────────────────────────────────
  4.                       By Christy Gemmell
  5.  
  6.  
  7. These are native QuickBASIC functions and procedures which call the
  8. machine-code routines in the Assembly-Language Toolbox for QuickBASIC.
  9. To use them, you must link both TOOLBOX.LIB, from the Assembly-Language
  10. Library disk, and the copy of MIXED.LIB from the Mixed-Language Library
  11. disk to your stand-alone programs, like this:
  12.  
  13.     LINK yourprog,,,toolbox.lib mixed.lib;
  14.  
  15. Since the QuickBASIC environment only allows one Quick Library to be
  16. loaded at a time, however, the version of MIXED.QLB supplied also
  17. contains all the routines from TOOLBOX.LIB. This allows you to use the
  18. environment to develop and test programs which use functions from 
  19. both libraries. Just start QuickBASIC with the command:
  20.  
  21.     QB(X) yourprog /L mixed.qlb
  22.  
  23. You can even build your own Quick Libraries, incorporating Toolbox
  24. routines, using the QuickBASIC Linker as follows:
  25.  
  26.     LINK /QU yoursub.obj yourfun.obj toolbox.lib mixed.lib,,bqlb45.lib;
  27.  
  28. BQLB45.LIB is the special interface library supplied with Microsoft's
  29. QuickBASIC 4.5 compiler. Substitute the following library names for other
  30. versions of the language.
  31.  
  32.     BQLB40.LIB          for QuickBASIC 4.0
  33.     BQLB41.LIB          for BASIC 6.0
  34.     QBXQLB.LIB          for BASIC 7.0 and 7.1 PDS
  35.  
  36. Be sure that, whichever interface library you use, it can be found by
  37. LINK.EXE when the library is being built. This can be done, either by
  38. copying it to the Linker's own directory or to a subdirectory pointed to
  39. by a LIB= environment variable in your AUTOEXEC.BAT file, for example:
  40.  
  41.     SET LIB=C:\QB45\LIBRARY
  42.  
  43. See your MS-DOS or PC-DOS manual for more information about environment
  44. variables.
  45.  
  46. If you have the Professional version of the Assembly-Language Toolbox,
  47. of course, building customised libraries is much easier since a full
  48. set of object (.OBJ) modules, together with source code, is supplied
  49. with this release.
  50.  
  51. The stand-alone (.LIB) and Quick Library (.QLB) versions of the Mixed-
  52. Language Toolbox both contain the following SUB programs and FUNCTION
  53. procedures:
  54.  
  55.  
  56. BARMENU
  57.  
  58. Creates and operates a menu orientated horizontally on the screen row
  59. specified. The calling program must supply :
  60.  
  61. Row%        =   The screen row on which the menu bar will appear.
  62. Atr%        =   The display attribute or colour for the menu bar.
  63. Opt%        =   Number of options available for selection.
  64. Menu$()     =   String array containing selection list. Menu$(0) should
  65.                 be set to a string of ASCII characters, corresponding to
  66.                 the initial or key letter of each option in the list.
  67. Bar%        =   The menu selection to be highlighted on entry into the
  68.                 procedure.
  69. Nxt%        =   If set, this flag just causes the menu to be refreshed
  70.                 without pausing for a selection from the user. This is
  71.                 used to handle presses on the Right or Left Arrow keys
  72.                 in the Pull-Down Menu procedure.
  73. Ctx%        =   If set, this flag indicates that context-sensitive help
  74.                 is available, in which case ...
  75. Tpc$        =   The root name of the Topic file to be displayed if the
  76.                 user presses <F1> for help. The current selection number
  77.                 is appended to this to produce the actual filename.
  78. Mouse%      =   If set, this flag indicates that a mouse is installed
  79.                 and can be used to make selections.
  80.  
  81. On completion the procedure returns with the following variable set:
  82.  
  83. Bar%        =   Number of selection made by user. If zero then the
  84.                 <Escape> key was pressed to abort the procedure
  85.                 without making a selection.
  86.  
  87. DECLARE SUB BarMenu (Row%, Atr%, Opt%, Menu$(), Bar%, Nxt%,_
  88.                      Ctx%, Topic$, Mouse%)
  89.  
  90. See the source code for DEMON.BAS, the Toolbox demonstration program, for
  91. an example of BARMENU in use.
  92.  
  93.  
  94. BINDEC
  95.  
  96. Translates a string of binary digits to their long integer decimal
  97. equivalent.
  98.  
  99. DECLARE FUNCTION BinDec& (Binary$)
  100.  
  101.  
  102. BITRESET
  103.  
  104. Clears the specified bit (0-15) of the integer number supplied.
  105.  
  106. DECLARE SUB BitReSet (Number%, Bit%)
  107.  
  108.  
  109. BITSET
  110.  
  111. Sets the specified bit (0-15) in the integer number supplied to 1.
  112.  
  113. DECLARE SUB BitSet (Number%, Bit%)
  114.  
  115.  
  116. BITTEST
  117.  
  118. Returns logical TRUE (-1) if the bit (0-15) of Number% is set and FALSE
  119. (zero) if the bit is clear.
  120.  
  121. DECLARE FUNCTION BitTest% (Number%, Bit%)
  122.  
  123.  
  124. CENTRE
  125.  
  126. Centres the string supplied within an empty string of specified width.
  127.  
  128. DECLARE FUNCTION Centre$ (Text$, MaxWidth%)
  129.  
  130. This function is called by the VERMENU routine (see below) to centre the
  131. title of a pull-down menu within the window it refers to.
  132.  
  133.  
  134. CHECKPRINTER
  135.  
  136. This procedure checks if the specified parallel printer is ready and
  137. on-line. If so, it returns immediately with Ready% set to -1 (TRUE), if
  138. not, CHECKPRINTER displays the message 'PRINTER NOT READY' on the bottom
  139. row of the screen and waits for the operator to correct the problem and
  140. press a key.
  141.  
  142. If the user presses <Escape>, the procedure returns with Ready% set to
  143. zero (FALSE). Any other keystroke causes it to go back and test the
  144. printer again. CHECKPRINTER will not return until either the printer is
  145. ready for output, or the <Escape> key is pressed.
  146.  
  147. DECLARE SUB CheckPrinter (Printer%, Ready%)
  148.  
  149. Printer% is the number of the parallel printer to test (1 = LPT1: etc).
  150.  
  151. Example:    CheckPrinter 1, Ready%              ' Test LPT1:
  152.             IF NOT Ready% THEN
  153.                STOP
  154.             ELSE
  155.                LPRINT Stuff$
  156.             END IF 
  157.  
  158.  
  159. DATEINPUT
  160.  
  161. Accepts and verifies date input in a Reverse Video entry panel, all the
  162. usual editing keys are supported and entry is terminated by either a
  163. Carriage Return or one of several special function keys (see below).
  164.  
  165. DECLARE FUNCTION DateInput$ (Default$, Context%, Topic$, HotKey%)
  166.  
  167. Default$    =  default string which can be accepted by just pressing
  168.                the <Enter> key.
  169. Context%    =  set TRUE if context-sensitive help is available, in
  170.                which case ... 
  171. Topic$      =  name of the HELP Topic file to display whenever the
  172.                <F1> key is pressed. 
  173. HotKey% =  If entry is terminated by anything other than the
  174.                <Enter> key, this variable will contain an explanatory
  175.                return code ..
  176.  
  177. Return Codes:   1  =  <Escape> abort entry returning a null string
  178.                 2  =  <F2>     repeat previous entry for this field
  179.                 3  =  <Up Arr> pressed, move to previous field 
  180.                 4  =  <Dn Arr> pressed, move to next field
  181.                 5  =  <Pg Up>  pressed, move to top of screen
  182.                 6  =  <Pg Dn>  pressed, move to end of screen
  183.  
  184. Editing Keys:   <L.Arrow>   =  Move cursor one character to the left
  185.                 <R.Arrow>   =  Move cursor one character to the right
  186.                 <Home>      =  Move cursor to first character of field
  187.                 <End>       =  Move cursor to last character of field
  188.                 <Ctrl End>  =  Clear from current cursor position to
  189.                                the end of the entry field.
  190.                 <BackSpace> =  Replace character under cursor with a
  191.                                blank space and move cursor one character
  192.                                to the left.
  193.                 <F1>        =  pop up on-line HELP screen.
  194.  
  195. DATEINPUT is designed to be used as part of a full-screen data-entry
  196. system. Your program can examine the return code to determine whether
  197. the operator wishes to terminate entry or move forwards or backwards
  198. between entry fields.
  199.  
  200. See also the REVINPUT function for a similar, more general-purpose,
  201. data-entry routine.
  202.  
  203.  
  204. DAYSBETWEEN
  205.  
  206. Calculates the number of days between two dates, supplied as strings in
  207. the format DD/MM/YYYY. The function will provide accurate results when
  208. supplied with dates between 01/01/1901 and 31/12/2099.
  209.  
  210. DECLARE FUNCTION DaysBetween& (Date1$, Date2$)
  211.  
  212. See the INTERVAL function for a method of calculating the number of
  213. days between two Julian dates.
  214.  
  215.  
  216. DECBIN
  217.  
  218. Translates a decimal number to an equivalent string of binary digits.
  219.  
  220. DECLARE FUNCTION DecBin$ (Decimal&)
  221.  
  222.  
  223. DOSVERSION
  224.  
  225. Gets the current Operating System (DOS) version. The version is returned
  226. as a string in the form "3.20" (for DOS 3.2).
  227.  
  228. No calling parameters are required.
  229.  
  230. DECLARE FUNCTION DosVersion$ ()
  231.  
  232.  
  233. FINDFILE
  234.  
  235. This function can be used to locate a particular file in any drive or
  236. directory of the current system. Supply it with a pathname or an ambiguous
  237. filespec and it will display a list of all matching files from which the
  238. user can select the one required by highlighting it with the cursor arrow
  239. keys. The function returns the full pathname of the file selected or a
  240. null string if <ESC> was pressed.
  241.  
  242. DECLARE FUNCTION FindFile$ (FileSpec$)
  243.  
  244. On entry, FILESPEC$ should contain the name of the file to be located. If
  245. the filespec is ambiguous, the program presents a directory listing, in a
  246. popup window, of all files which match and allows the operator to select
  247. the actual one required. If the pathname is explicit, FindFile just checks
  248. if it actually exists. On return FILESPEC$, will contain the full pathname
  249. of the selected file, or a null string if it was not located (or the
  250. <Escape> key was pressed).
  251.  
  252.  
  253. GETFLAG
  254.  
  255. The MIXED-LANGUAGE Toolbox includes a pair of functions which give you
  256. access to the INTRA-APPLICATION COMMUNICATION AREA (IAC), an area of
  257. memory which has been reserved, by DOS, so that programs can communicate
  258. with each other. The IAC is 16 bytes long and is located, in low RAM at
  259. addresses 0000:04F0 - 04FF (Hex). Once set, an IAC flag retains it's value
  260. until  you reset it,  or the computer is rebooted.
  261.  
  262. This function returns the value of one of the IAC flag bytes (1 to 16).
  263.  
  264. DECLARE FUNCTION GetFlag% (Flag%)
  265.  
  266. You can set the current setting of a particular IAC flag byte with the
  267. SETFLAG function.
  268.  
  269. Since QuickBASIC programs, compiled with the /O switch to run stand-alone,
  270. cannot pass variables to chain modules, you can use this feature to
  271. implement a limited form of parameter passing.
  272.  
  273.  
  274. GRATTRIB
  275.  
  276. Calculate display attribute for graphics modes, given the foreground
  277. and background colours required.
  278.  
  279. DECLARE FUNCTION GrAttrib% (ForeGround%, BackGround%)
  280.  
  281. GRATTRIB calculates the attribute value which controls the foreground and
  282. background colours of characters displayed using the GRAPRINT, CGATEXT,
  283. MCGATEXT and VGATEXT procedures. It translates them using the formula:
  284.  
  285.     Attribute% = (BackGround% * 256) + ForeGround%
  286.  
  287. Make sure that you use foreground and background colour values appropriate
  288. to the SCREEN mode currently in use.
  289.  
  290. The ATTRIBUTE function provides a similar service for use with text mode
  291. screens
  292.  
  293.  
  294. ISDIR
  295.  
  296. This routine tests to see if the supplied string is the name of a
  297. directory. To do this a local error handler is established to trap any
  298. run-time errors and an attempt is made to change to the directory
  299. specified in TEST$. If an error occurs then ISDIR% is set to Boolean FALSE
  300. (zero), otherwise TRUE (-1) is returned.
  301.  
  302. DECLARE FUNCTION IsDir% (Test$)
  303.  
  304. ISDIR is used by the FINDFILE function when searching for files on another
  305. drive or directory.
  306.  
  307.  
  308. LEGALNAME
  309.  
  310. This function returns TRUE or FALSE to indicate if the filespec passed to
  311. it is legal. To do this, each character in the string is compared with a
  312. set of illegal characters. If none are found a further check is made to
  313. ensure there are no more than eight characters in the name and three in
  314. the extension.
  315.  
  316. FUNCTION LegalName% (FileSpec$)
  317.  
  318.  
  319. LINEUP
  320.  
  321. Returns a string representation of a numeric value. If COMMA% is TRUE
  322. (non-zero) then the string has commas inserted between every group of
  323. three digits to the left of the decimal. If LENGTH% is non-zero then the
  324. resulting string is left padded with spaces to produce a string of the
  325. required length. If CURRENCY$ is not null, the character it contains will
  326. be prefixed to the returned string.
  327.  
  328. DECLARE FUNCTION LineUp$ (Num#, Places%, Comma%, Length%, Currency$)
  329.  
  330.  
  331. LONGDATE
  332.  
  333. This function accepts a three-part numeric date and transcribes it into
  334. a string containing the date in words. This includes the day of the week,
  335. which is obtained by calling DOS's internal time and date services. DOS
  336. is also used to check for an invalid date.
  337.  
  338. DECLARE FUNCTION LongDate$(Day%, Month%, Year%)
  339.  
  340. LONGDATE returns a null string if the arguments passed evaluate to an
  341. illegal date (eg 29/2/1989).
  342.  
  343.  
  344. MATCH
  345.  
  346. This function is similar to INSTR but allows the use of wildcards. It is
  347. based on the MATCH function provided by Digital Research's C-BASIC.
  348.  
  349. DECLARE FUNCTION Match% (Start%, Search$, Pattern$)
  350.  
  351. Call with:  Start%   = character position in search string to
  352.                        start searching from
  353.             Search$  = String to search
  354.             Pattern$ = String expression to search for 
  355.  
  356. Returns:    Position of first character of Pattern$ in Search$
  357.             (0 if Pattern$ is not found)
  358.  
  359. Wildcards:  #   match any numeric character
  360.             !   match any alphabetic character
  361.             ?   match any character
  362.  
  363.             \   indicates that the next character in the string
  364.                 to search for is literal, not a wildcard.
  365.  
  366.  
  367. PANEL
  368.  
  369. This procedure is used to produce rectangular boxes, upon the video
  370. display, of various shapes and colours. The calling program should supply
  371. the row/column co-ordinate of the top, left-hand corner of the required
  372. panel, its height in rows and width in columns. You should also specify
  373. the display attribute that the panel will be displayed in and the border
  374. style to frame it with.
  375.  
  376. DECLARE SUB Panel (Row%, Col%, Rows%, Cols%, Border%, Attr%)
  377.  
  378. Panels can be drawn with the following border styles:
  379.  
  380. ┌───┐         ╔═══╗         ╓───╖        ╒═══╕
  381. │ 1 │         ║ 2 ║         ║ 3 ║        │ 4 │
  382. └───┘         ╚═══╝         ╙───╜        ╘═══╛
  383.  
  384. Any other value draws the panel without a border.
  385.  
  386. Although the boxes drawn by PANEL resemble popup windows, you cannot
  387. restore the screen contents overwritten by a box once it has been drawn.
  388. See the POPUP and SHUTUP routines, however, for a full windowing
  389. system which does preserve the display.
  390.  
  391.  
  392. REVINPUT
  393.  
  394. Accepts user input in a Reverse Video entry panel, all the usual editing
  395. keys are supported and entry may be terminated by either a carriage-return
  396. or one of several special function keys (see below).
  397.  
  398. Max%         =  maximum number of characters which can be accepted.
  399. Default$     =  default string which can be accepted by just pressing
  400.                 the <Enter> key.
  401. Ctx%         =  set TRUE if context-sensitive help is available, in
  402.                 which case ... 
  403. Topic$       =  name of the HELP Topic file to display whenever the
  404.                 <F1> key is pressed. 
  405. Mask%        =  if TRUE (non-zero) prevents the characters entered from
  406.                 being echoed to the display. Instead an asterisk (*) is
  407.                 displayed for each character position although the entry
  408.                 string itself is unaffected. Use this for passwords.
  409. HotKey%      =  If entry is terminated by anything other than the
  410.                 <Enter> key, this variable will contain an explanatory
  411.                 return code ..
  412.  
  413. Return Codes:   1  =  <Escape> abort entry returning a null string
  414.                 2  =  <F2>     repeat previous entry for this field
  415.                 3  =  <Up Arr> pressed, move to previous field 
  416.                 4  =  <Dn Arr> pressed, move to next field
  417.                 5  =  <Pg Up>  pressed, move to top of screen
  418.                 6  =  <Pg Dn>  pressed, move to end of screen
  419.                 7  =  A hotkey was supplied and used. The calling
  420.                                program takes appropriate action.
  421.  
  422.                 You can specify any key as the hotkey by setting your
  423.                 own value in HotKey% before calling REVINPUT. This
  424.                 number can either be the ASCII code of any standard
  425.                 key or the SCAN code (as a negative value) of one of
  426.                 the function keys. Set HotKey% to zero to turn off
  427.                 keyboard trapping (except for keys 1-6 above).            
  428.  
  429. Editing Keys:   <L.Arrow>   =  Move cursor one character to the left
  430.                 <R.Arrow>   =  Move cursor one character to the right
  431.                 <Home>      =  Move cursor to first character of field
  432.                 <End>       =  Move cursor to last character of field
  433.                 <Ctrl End>  =  Clear from current cursor position to
  434.                                the end of the entry field.
  435.                 <Insert>    =  Toggle between Insert and Overtype modes
  436.                 <Delete>    =  Delete character under the cursor.
  437.                 <BackSpace> =  Replace character under cursor with a
  438.                                blank space and move cursor one character
  439.                                to the left.
  440.                 <F1>        =  pop up on-line HELP screen.
  441.  
  442. DECLARE FUNCTION RevInput$ (Max%, Default$, Ctx%, Topic$, Mask%, HotKey%)
  443.  
  444. REVINPUT is designed to be used as part of a full-screen data-entry
  445. system. Your program can examine the return code to determine whether the
  446. operator wishes to terminate entry or move forwards or backwards between
  447. entry fields.
  448.  
  449. See also the DATEINPUT function for a keyboard routine specially designed
  450. to ask the operator for a date!!!!
  451.  
  452.  
  453. ROUND
  454.  
  455. Rounds a double-precision number to the number of decimal places required
  456. and returns it as a string.
  457.  
  458. DECLARE FUNCTION Round$ (Number#, Places%)
  459.  
  460.  
  461. SCREENMODE
  462.  
  463. This function calls ROM-BIOS to check the current video mode and then
  464. converts the returned value to the equivalent QuickBASIC SCREEN number.
  465. It can detect the Hercules 720 x 348 graphics mode (SCREEN 3) and the new
  466. Olivetti 640 x 400 mode (SCREEN 4) as well as the Tandy 1000 and PCjr CGA
  467. modes (SCREENs 5 & 6) which are not supported by QuickBASIC.  Other
  468. unsupported graphics modes return a value of -1.
  469.  
  470. No calling parameters are required.
  471.  
  472. DECLARE FUNCTION ScreenMode% ()
  473.  
  474.  
  475. SETFLAG
  476.  
  477. This routine is used to set  one of the sixteen system flags to a value of
  478. between 0 and 255. These flags are situated in the Intra-Application
  479. Communications area, an area reserved by DOS for user programs to signal
  480. to each other. FLAG% is the flag number (1-16), VALUE% is the value you
  481. want to set.
  482.  
  483. DECLARE SUB SetFlag (Flag%, Setting%)
  484.  
  485. You can read the current setting of a particular IAC flag byte with the
  486. GETFLAG function.
  487.  
  488.  
  489. SORTFILE
  490.  
  491. expects the user to supply the name of the file to be sorted. The file,
  492. itself, must be fixed length and its name can include a drive letter and
  493. directory pathname. The logical record length of the file must also be
  494. supplied, along with the start position and length of the field which the
  495. file is to be sorted on.
  496.  
  497. The procedure returns with Done% set to -1 (logical TRUE), if the sort
  498. completed successfully, or to zero (logical FALSE) if an error occurred.
  499.  
  500. DECLARE SUB SortFile (PathName$, OffSet%, FieldLen%, RecordLen%, Done%)
  501.  
  502. The program first checks the size of the file and the amount of free disk
  503. space to see if the it can be sorted in memory, this requires space for
  504. two copies of the file on disk. If it is too large, the file is sorted in
  505. place so that no extra disk space is required. Using this method, which is
  506. far slower, the file may be of any size up to 4 Gigabytes.
  507.  
  508. Note:       If, when sorting in place on disk, SORTFILE detects that there
  509.             is a Ramdisk installed with enough free space to hold the file
  510.             that is being sorted, the program will copy and sort the file
  511.             there. This is much faster than a conventional disk sort, but
  512.             still not as fast as sorting directly in memory.
  513.  
  514.  
  515. VERMENU
  516.  
  517. Displays and operates a pulldown menu, allowing the user to select from
  518. the list of options displayed in the menu window. 
  519.  
  520. DECLARE SUB VerMenu (Row%, Col%, Attr%, Bdr%, Opts%, Title$, Menu$(),_
  521.                      Choice%, Nxt%, Bar%, Ctx%, Topic$, Mouse%)
  522.  
  523. Expects:  Row%, Col%    screen co-ordinates of top-left corner of the
  524.                         window containing the menu.
  525.           Attr%         display attribute given to menu window.
  526.           Bdr%          Border style (1 - 8, 0 = no border). see the
  527.                         WINDOWS documentation for a list of styles.
  528.           Opts%         Number of options provided by menu.
  529.           Title$        Title for the menu, if null string then no
  530.                         title is displayed.
  531.           Menu$()       Text for options list. MENU$(0) should contain
  532.                         a list of key characters, one for each option.
  533.           Ctx%          If set, this indicates that context-sensitive
  534.                         help is available, in which case ...
  535.           Tpc$          The root name of the Topic file to be displayed
  536.                         if the user presses <F1> for help. The current
  537.                         selection number is appended to this to produce
  538.                         the actual filename.
  539.           Mouse%        If set, this flag indicates that a mouse is
  540.                         installed and can be used to make selections.
  541.  
  542. Returns:  Choice%       Number of selection made by user. If zero then
  543.                         the user pressed <ESC> to abort without making
  544.                         a selection.
  545.           Nxt%          Set TRUE if the user pressed the left or right
  546.                         arrow key to move sideways to another menu, in
  547.                         which case ....
  548.           Bar%          is incremented or decremented accordingly.
  549.  
  550. The BARMENU procedure provides a similarly featured menu which is
  551. orientated horizontally.
  552.  
  553. See the source code for DEMON.BAS, the Toolbox demonstration program, for
  554. an example of VERMENU (and BARMENU) in use.
  555.  
  556.  
  557. VIDEOMODE
  558.  
  559. Checks the video system capabilities of the host computer.
  560.  
  561. DECLARE SUB VideoMode (Colour%, MaxRes%, VideoRam%)
  562.  
  563. This function calls ROM-BIOS to check the type of display adaptor which is
  564. installed in the host system. Three variables are supplied which, on
  565. return, provide the following information:
  566.  
  567. COLOUR%   -1 = Colour adaptor   Indicates the presence of a colour
  568.            0 = Monochrome       monitor in EGA systems. Returns -1
  569.                                 for CGA, even if a mono monitor is
  570.                                 bring used.
  571. MAXRES%    highest SCREEN       Highest resolution graphics screen
  572.            resolution           which can be set. Is equivalent to
  573.                                 QuickBASIC SCREEN numbers. MDA can
  574.                                 only use SCREEN 0, CGA 0, 1 and 2
  575.                                 N.B. MaxRes% = 10 indicates an EGA
  576.                                 with mono monitor. This means that
  577.                                 SCREEN 9 can NOT be used.
  578. VIDEORAM%  in kilobytes         Amount of dedicated display memory
  579.                                 installed. 
  580.                                 MDA = 4K, CGA = 16K, EGA = 64-256K
  581.  
  582.  
  583. EXTRA ROUTINES FOR QB4
  584.  
  585. The following functions and procedures are only included in the version of
  586. the Toolbox intended for QuickBASIC 4.x and BASIC 6. They are omitted from
  587. the later version because the Extended QuickBASIC language provided with
  588. the BASIC 7 Professional Development System includes new statements and
  589. functions that render them unneccessary.
  590.  
  591.  
  592. CHANGEDIR
  593.  
  594. This procedure changes the current directory to the one specified by the
  595. pathname supplied. If a drive letter is included in the argument, the
  596. routine also changes the current drive.
  597.  
  598. DECLARE SUB ChangeDir (PathName$)
  599.  
  600. Microsoft have now added CHDIR and CHDRIVE statements to QBX, the new
  601. Extended QuickBASIC supplied with BASIC 7. Since these statements make
  602. CHANGEDIR redundant, it is not provided with the BASIC 7 Toolbox.
  603.  
  604.  
  605. WAITASEC
  606.  
  607. System-independent pause for a specified number of seconds. The delay will
  608. still be the same, whether you have an original IBM-PC or an AT with the
  609. latest Intel i486 processor running at 33MHz.
  610.  
  611. DECLARE SUB WaitaSec (Seconds!)
  612.  
  613. This is an alternative to the SLEEP statement, for people who still use
  614. QuickBASIC 4.0
  615.